package cn.iocoder.yudao.module.api.shop.staff.dto;

import cn.iocoder.yudao.framework.business.basic.pojo.dto.SaveDTO;
import cn.iocoder.yudao.framework.validation.ChineseName;
import cn.iocoder.yudao.framework.validation.InEnumValue;
import cn.iocoder.yudao.framework.validation.PhoneNumber;
import cn.iocoder.yudao.module.api.shop.staff.enums.ShopStaffRoleEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

@Schema(description = "管理后台 - 核销人员新增/修改 Request VO")
@Data
public class ShopStaffSaveDTO extends SaveDTO {

    @Schema(description = "角色：0-普通店员、1-店长、2-核销员、3-配送员、4-收银员、5-业务员。多个之间用英文逗号隔开")
    @InEnumValue(ShopStaffRoleEnum.class)
    private List<Integer> roles;

    @Schema(description = "姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "羡民")
    @NotEmpty(message = "姓名不能为空")
    @ChineseName
    private String contactName;

    @Schema(description = "电话", requiredMode = Schema.RequiredMode.REQUIRED, example = "15285116029")
    @NotEmpty(message = "电话不能为空")
    @PhoneNumber
    private String contactMobile;

}